package com.woniu.his.app.common;


import com.woniu.his.result.ResultCode;

public enum AppResultCode implements ResultCode {

    USE_EXCEPTION(3000, "USE_EXCEPTION 调用异常"),
    TOKEN_RESULT_CODE(3001,"TOKEN_RESULT_CODE token不存在"),
    CODE_IS_CREATED(3002,"验证码已存在"),
    REGISTRATION_NOT_EXISTS(3003,"挂号不存在"),
    PATIENT_NOT_EXIST(303,"患者不存在"),
    SKD_NOT_EXIST(304,"Skd不存在"),
    DEPT_NOT_EXIST(305,"科室不存在"),
    TIME_NOT_EXIST(306, "该时间段不存在"),
    ;

    private int code;
    private String message;

    private AppResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
